package com.threadmethod;

/**
 * @PackageName:com.threadmethod
 * @ClassName:SubThread02
 * @Description:
 * @Author: zhangxiaoyu
 * @date 2020/11/19 14:03
 */
public class SubThread02  extends  Thread{

    SubThread02(){
        System.out.println("构造方法中，Thread.currentThread.getName():"+Thread.currentThread().getName());
        System.out.println("构造方法中：："+this.getName());
    }

    @Override
    public void run() {
        System.out.println("run方法中，Thread.currentThread.getName():"+Thread.currentThread().getName());
        System.out.println("run方法中：："+this.getName());
    }
}
